package com.gitee.shoes.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author LYH
 */
@Data
@ConfigurationProperties(prefix = ProductProperties.PREFIX)
public class ProductProperties {

    public static final String PREFIX = "product.crawler";

    private CrawlerProperties crawler = new CrawlerProperties();

    @Data
    public static class CrawlerProperties {
        /**
         * 更新现在购买价格周期（小时）;0为不更新
         */
        private int buyNowPriceUpdatePeriod = 2;
        /**
         * 清除忽略标记周期（小时）;0为不清除
         */
        private int clearIgnoreMarkPeriod = 0;
        /**
         * 获取销售记录周期（小时）；0为不获取
         */
        private int soldUpdatePeriod = 2;
    }
}
